package com.yangmao.dao;

import com.yangmao.entity.Admin;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ‘洋毛’
 * @version 1.0
 * @description: TODO
 * @date 2021/12/11 11:23
 */
public interface AdminDao {

    @Select("select * from admin")
    List<Admin> getAllAdmin();

    @Select("select * from admin where username= #{username}")
    List<Admin> getAdminByAcct(String username);

}
